import sqlite3

conn = sqlite3.connect("d:/test.db")
cur = conn.cursor()

sql_update = "update user set email='zhaosf@abc.com' where sid=1003"
cur.execute(sql_update)
conn.commit()

sql_select = "select * from  user where sid=1003"
s = cur.execute(sql_select)
for row in s:
	print("sid=",row[0])
	print("name=",row[1])
	print("email=",row[2],'\n')

conn.close()